import request from "@/utils/request";

export default {

    findHotCourse() {
        return request({
            url:"/course/hot",
            method:"Get"
        })
    },

    findAllCourse(currentPage,pageSize) {
        return request({
            url:`/course/all/${currentPage}/${pageSize}`,
            method:"Get"
        })
    },
    //通过Id查询课程详情
    findCourseDetailById(id) {
        return request({
            url:`/course/detail/${id}`,
            method:"Get"
        })
    }

}